<?php
class Delivery_Model_DbTable_TagsType
	extends Delivery_Model_DbTable_Abstract

{
	protected $_name = 'tags_type';
	protected $_primary = 'idTagType';
	protected $_all = array();
	
	public function init(){
		
		$this->_all = $this->_db->fetchAssoc( $this->select()); 
			
	}
	
	public function getById( $idTagType ){
		
		return isset( $this->_all[$idTagType] )? $this->_all[$idTagType] : null;
	}
	
	
}